<!-- Begin issues/group.tpl -->

<table width="100%"> 
<td align="left"><img src={grouplogo id=$smarty.get.gid}></td>
</table>

{titlebar colspan=$colspan title=$title}
{opentable}

<tr class="sectiontableheader" align="center">
{if in_array("flags",$smarty.session.prefs.show_fields)
and is_employee($smarty.session.userid)}
<td width="60">Flags</td>
{/if}
{if in_array("issueid",$smarty.session.prefs.show_fields)}
<td width="5%"><a href="{$url}&sort=issueid{if $smarty.get.sort eq "issueid" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->ID}</a></td>
{/if}

<td align="left">{$lg->object}</td>
<td width="5%">{$lg->unread}</td>
{if in_array("opened_by",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=opened_by{if $smarty.get.sort eq "opened_by" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->by}</a></td>
{/if}
{if in_array("assigned_to",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=assigned_to{if $smarty.get.sort eq "assigned_to" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->assigned_to}</a></td>
{/if}
{if in_array("modified",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=modified{if $smarty.get.sort eq "modified" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->UPD}</a></td>
{/if}
{if in_array("category",$smarty.session.prefs.show_fields)}
<td width="5%"><a href="{$url}&sort=category{if $smarty.get.sort eq "category" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->type}</a></td>
{/if}
{if in_array("product",$smarty.session.prefs.show_fields)}
<td width="10%"><a href="{$url}&sort=product{if $smarty.get.sort eq "product" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->product}</a></td>
{/if}
{if in_array("status",$smarty.session.prefs.show_fields)}
<td width="5%"><a href="{$url}&sort=status{if $smarty.get.sort eq "status" and $smarty.get.reverse ne "true"}&reverse=true{/if}">{$lg->status}</a></td>
{/if}
</tr>

{if $num_rows > 0}
{foreach from=$rows key=issueid item=issue}
<tr class="{sevrow sev=$issue.severity}" align="center">
{if in_array("flags",$smarty.session.prefs.show_fields)
and is_employee($smarty.session.userid)}
<td width="60">
{if $issue.private eq "t"}
<img src="{$smarty.env.imgs.private}" width="16" height="16" border="0" alt="Private Issue" />
{/if}
{if $issue.escto eq TRUE}
<img src="{$smarty.env.imgs.deescalate}" width="16" height="16" border="0" alt="Escalated into this Group" />
{/if}
{if $issue.escfrom eq TRUE}
<img src="{$smarty.env.imgs.escalate}" width="16" height="16" border="0" alt="Escalated out of this Group" />
{/if}
</td>
{/if}
{if in_array("issueid",$smarty.session.prefs.show_fields)}
<td width="5%">{$issueid}</td>
{/if}

<td align="left"><a href="?module=issues&action=view&issueid={$issueid}&gid={$smarty.get.gid}">{$issue.objet|stripslashes}</td>
<td width="5%">{$issue.unread}</td>

{if in_array("opened_by",$smarty.session.prefs.show_fields)}
<td width="10%">{$issue.username}</td>
{/if}
{if in_array("assigned_to",$smarty.session.prefs.show_fields)}
<td width="10%">{username id=$issue.assigned_to}</td>
{/if}
{if in_array("modified",$smarty.session.prefs.show_fields)}
<td width="10%">{fdelay id=$issue.modified}</td>
{/if}
{if in_array("category",$smarty.session.prefs.show_fields)}
<td width="5%">{category id=$issue.category}</td>
{/if}
{if in_array("product",$smarty.session.prefs.show_fields)}
<td width="15%">{product id=$issue.product}</td>
{/if}
{if in_array("status",$smarty.session.prefs.show_fields)}
<td width="5%">{status id=$issue.status}</td>
{/if}
</tr>
{/foreach}
{else}
<tr class="data"><td colspan="{$colspan}">{$lg->no_issue}</td></tr>
{/if}

<td colspan="4" align="center" height="30px">&nbsp;</td>

</table>
</table>



<!-- End issues/group.tpl -->

